export default {
  namespaced: true, state: () => ({
    totalSize: 200,  // 每一页容许最大的数据量
    currentPage: 0, // 页码对应的json文件
    pageConfig: {}, // 节点对应的页码
    nodeToPage: {}, // 当前json的名字
    jsonName: ""
  }), actions: {
    setCurrentPage({ state }, currentPage) {
      state.currentPage = currentPage;
    }, setTotalSize({ state }, current) {
      state.totalSize = current;
    }, setJsonName({ state }, name) {
      state.jsonName = name;
      window.localStorage.setItem("jsonName", name);
    }
  }
};
